Optimal. Leaf size=120 \[ -\frac{x \sqrt{a^2 c x^2+c}}{6 a^3 c}+\frac{x^2 \sqrt{a^2 c x^2+c} \tan ^{-1}(a x)}{3 a^2 c}-\frac{2 \sqrt{a^2 c x^2+c} \tan ^{-1}(a x)}{3 a^4 c}+\frac{5 \tanh ^{-1}\left (\frac{a \sqrt{c} x}{\sqrt{a^2 c x^2+c}}\right )}{6 a^4 \sqrt{c}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.152662, antiderivative size = 120, normalized size of antiderivative = 1., number of steps used = 7, number of rules used = 5, integrand size = 22, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.227, Rules used = {4952, 321, 217, 206, 4930} \[ -\frac{x \sqrt{a^2 c x^2+c}}{6 a^3 c}+\frac{x^2 \sqrt{a^2 c x^2+c} \tan ^{-1}(a x)}{3 a^2 c}-\frac{2 \sqrt{a^2 c x^2+c} \tan ^{-1}(a x)}{3 a^4 c}+\frac{5 \tanh ^{-1}\left (\frac{a \sqrt{c} x}{\sqrt{a^2 c x^2+c}}\right )}{6 a^4 \sqrt{c}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4952
Rule 321
Rule 217
Rule 206
Rule 4930
Rubi steps
\begin{align*} \int \frac{x^3 \tan ^{-1}(a x)}{\sqrt{c+a^2 c x^2}} \, dx &=\frac{x^2 \sqrt{c+a^2 c x^2} \tan ^{-1}(a x)}{3 a^2 c}-\frac{2 \int \frac{x \tan ^{-1}(a x)}{\sqrt{c+a^2 c x^2}} \, dx}{3 a^2}-\frac{\int \frac{x^2}{\sqrt{c+a^2 c x^2}} \, dx}{3 a}\\ &=-\frac{x \sqrt{c+a^2 c x^2}}{6 a^3 c}-\frac{2 \sqrt{c+a^2 c x^2} \tan ^{-1}(a x)}{3 a^4 c}+\frac{x^2 \sqrt{c+a^2 c x^2} \tan ^{-1}(a x)}{3 a^2 c}+\frac{\int \frac{1}{\sqrt{c+a^2 c x^2}} \, dx}{6 a^3}+\frac{2 \int \frac{1}{\sqrt{c+a^2 c x^2}} \, dx}{3 a^3}\\ &=-\frac{x \sqrt{c+a^2 c x^2}}{6 a^3 c}-\frac{2 \sqrt{c+a^2 c x^2} \tan ^{-1}(a x)}{3 a^4 c}+\frac{x^2 \sqrt{c+a^2 c x^2} \tan ^{-1}(a x)}{3 a^2 c}+\frac{\operatorname{Subst}\left (\int \frac{1}{1-a^2 c x^2} \, dx,x,\frac{x}{\sqrt{c+a^2 c x^2}}\right )}{6 a^3}+\frac{2 \operatorname{Subst}\left (\int \frac{1}{1-a^2 c x^2} \, dx,x,\frac{x}{\sqrt{c+a^2 c x^2}}\right )}{3 a^3}\\ &=-\frac{x \sqrt{c+a^2 c x^2}}{6 a^3 c}-\frac{2 \sqrt{c+a^2 c x^2} \tan ^{-1}(a x)}{3 a^4 c}+\frac{x^2 \sqrt{c+a^2 c x^2} \tan ^{-1}(a x)}{3 a^2 c}+\frac{5 \tanh ^{-1}\left (\frac{a \sqrt{c} x}{\sqrt{c+a^2 c x^2}}\right )}{6 a^4 \sqrt{c}}\\ \end{align*}
Mathematica [A] time = 0.120434, size = 91, normalized size = 0.76 \[ \frac{-a x \sqrt{a^2 c x^2+c}+5 \sqrt{c} \log \left (\sqrt{c} \sqrt{a^2 c x^2+c}+a c x\right )+2 \left (a^2 x^2-2\right ) \sqrt{a^2 c x^2+c} \tan ^{-1}(a x)}{6 a^4 c} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 1.153, size = 165, normalized size = 1.4 \begin{align*}{\frac{2\,\arctan \left ( ax \right ){a}^{2}{x}^{2}-ax-4\,\arctan \left ( ax \right ) }{6\,c{a}^{4}}\sqrt{c \left ( ax-i \right ) \left ( ax+i \right ) }}+{\frac{5}{6\,c{a}^{4}}\ln \left ({(1+iax){\frac{1}{\sqrt{{a}^{2}{x}^{2}+1}}}}+i \right ) \sqrt{c \left ( ax-i \right ) \left ( ax+i \right ) }{\frac{1}{\sqrt{{a}^{2}{x}^{2}+1}}}}-{\frac{5}{6\,c{a}^{4}}\ln \left ({(1+iax){\frac{1}{\sqrt{{a}^{2}{x}^{2}+1}}}}-i \right ) \sqrt{c \left ( ax-i \right ) \left ( ax+i \right ) }{\frac{1}{\sqrt{{a}^{2}{x}^{2}+1}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.47118, size = 196, normalized size = 1.63 \begin{align*} -\frac{2 \, \sqrt{a^{2} c x^{2} + c}{\left (a x - 2 \,{\left (a^{2} x^{2} - 2\right )} \arctan \left (a x\right )\right )} - 5 \, \sqrt{c} \log \left (-2 \, a^{2} c x^{2} - 2 \, \sqrt{a^{2} c x^{2} + c} a \sqrt{c} x - c\right )}{12 \, a^{4} c} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{x^{3} \operatorname{atan}{\left (a x \right )}}{\sqrt{c \left (a^{2} x^{2} + 1\right )}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.22996, size = 134, normalized size = 1.12 \begin{align*} -\frac{\sqrt{a^{2} c x^{2} + c} x}{6 \, a^{3} c} - \frac{5 \, \log \left ({\left | -\sqrt{a^{2} c} x + \sqrt{a^{2} c x^{2} + c} \right |}\right )}{6 \, a^{3} \sqrt{c}{\left | a \right |}} + \frac{{\left ({\left (a^{2} c x^{2} + c\right )}^{\frac{3}{2}} - 3 \, \sqrt{a^{2} c x^{2} + c} c\right )} \arctan \left (a x\right )}{3 \, a^{4} c^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]